package org.hugh.common;

/**
 * todo 在数据库中作为配置保存
 */
public enum RequestMapping {
    /**
     * 行情URL
     */
    QUOTATION_URL("https://hq.sinajs.cn/list=", "实时行情"),
    /**
     * 东方财富 全量行情
     */
    QUOTATION_ALL("https://82.push2.eastmoney.com/api/qt/clist/get?pn=1&pz=20000&po=1&np=2&ut=bd1d9ddb04089700cf9c27f6f7426281&fltt=2&invt=2&fid=f3&fs=m:0+t:6,m:0+t:80,m:1+t:2,m:1+t:23,m:0+t:81+s:2048&fields=f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25&_=" + System.currentTimeMillis(), "全量行情");

    private String url;

    private String desc;

    RequestMapping(String url, String desc) {
        this.url = url;
        this.desc = desc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
